//
//  Noname.m
//  MY QQapp
//
//  Created by liuchengming on 16/11/14.
//  Copyright © 2016年 liuchengming. All rights reserved.
//

#import "Noname.h"
#import "ViewController.h"

@interface Noname ()

@end

@implementation Noname

- (void)viewDidLoad {
    [super viewDidLoad];
}


- (IBAction)loging:(id)sender
{
    UIButton * btn  = [UIButton buttonWithType:UIButtonTypeCustom];
    
    [btn addTarget:self action:@selector(onlong) forControlEvents:UIControlEventTouchUpInside];
    btn.titleLabel.text = @"呵呵呵" ;
    btn.frame = CGRectMake(100, 400, 70, 44);
    [self.view addSubview:btn];
    
}

- (void)onlong
{
    ViewController * con = [ViewController new];
    [self.navigationController pushViewController:con animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
